/**
 * Description:
 * Created by GoLand.
 * User: Vijay <1937832819@qq.com>
 * Date: 2020/8/20
 * Time: 23:56
 */
package api

import (
	"blogApi/controllers"
)

type TestController struct {
	controllers.BaseController
}

func (self *TestController) Get() {
	self.ResJson(0, "获取成功", "API.TESR", nil)
}

func (self *TestController) Index() {
	current_url := self.Ctx.Request.RequestURI
	self.ResJson(0, "获取成功", current_url, nil)
}

func (self *TestController) Info() {
	current_url := self.Ctx.Request.RequestURI
	id := self.Ctx.Input.Param(":id")
	self.ResJson(0,  id, current_url,nil)
}
